/*** Eclipse Class Decompiler plugin, copyright (c) 2012 Chao Chen (cnfree2000@hotmail.com) ***/
package com.qihoopp.framework;

import android.content.Context;
import android.net.NetworkInfo;
import android.os.Bundle;
import android.os.Handler;
import android.os.Message;
import java.io.ByteArrayOutputStream;
import java.io.InputStream;
import java.io.UnsupportedEncodingException;
import java.net.URLEncoder;
import java.util.Map;

public class HttpLoadThread extends Thread {
    private static String a = "HttpLoadThread";
    private static int b = 30000;
    private HttpRequestMode c;
    private String d;
    private Map e;
    private Map f;
    private Context g;
    private boolean h;
    private Handler i;
    private String j;
    private int k;

    public HttpLoadThread(Context paramContext, Handler paramHandler, HttpRequestMode paramHttpRequestMode,
            String paramString, Map paramMap1, Map paramMap2) {
        this.g = paramContext;
        this.c = paramHttpRequestMode;
        this.d = paramString;
        this.e = paramMap1;
        this.f = paramMap2;
        this.i = paramHandler;
    }

    private void a(int paramInt, String paramString) {
        Message localMessage = new Message();
        Bundle localBundle;
        (localBundle = new Bundle()).putInt("state", paramInt);
        localBundle.putString("json", paramString);
        localMessage.setData(localBundle);
        this.i.sendMessage(localMessage);
    }

    public void cancel() {
        this.h = true;
    }

    public HttpLoadThread clone() {
        return new HttpLoadThread(this.g, this.i, this.c, this.d, this.e, this.f);
    }

    private boolean a() {
        try {
            Object localObject;
            if (((localObject = e.a(this.g)) != null) && (((NetworkInfo) localObject).isAvailable())
                    && (((NetworkInfo) localObject).getType() == 0)
                    && (((NetworkInfo) localObject).getExtraInfo() != null)) {
                localObject = ((NetworkInfo) localObject).getExtraInfo().toLowerCase();
                LogUtil.d("type", "ni.getType() =" + ((String) localObject));
                if ((((String) localObject).equals("cmwap")) || (((String) localObject).equals("uniwap"))
                        || (((String) localObject).equals("3gwap"))) {
                    this.j = "10.0.0.172";
                    this.k = 80;
                }
                else if (((String) localObject).equals("ctwap")) {
                    this.j = "10.0.0.200";
                    this.k = 80;
                }
                return ((String) localObject).endsWith("wap");
            }
        } catch (Exception localException) {
            LogUtil.e(a, "Exception", localException);
        }
        return false;
    }

    // ERROR //
    public void run() {
        // Byte code:
        //   0: aload_0
        //   1: getfield 79	com/qihoopp/framework/HttpLoadThread:c	Lcom/qihoopp/framework/HttpRequestMode;
        //   4: getstatic 88	com/qihoopp/framework/HttpRequestMode:GET	Lcom/qihoopp/framework/HttpRequestMode;
        //   7: if_acmpne +520 -> 527
        //   10: aload_0
        //   11: astore_1
        //   12: aconst_null
        //   13: astore_2
        //   14: iconst_1
        //   15: istore_3
        //   16: new 45	com/qihoopp/framework/k
        //   19: dup
        //   20: invokespecial 110	com/qihoopp/framework/k:<init>	()V
        //   23: getstatic 78	com/qihoopp/framework/HttpLoadThread:b	I
        //   26: aload_1
        //   27: getfield 86	com/qihoopp/framework/HttpLoadThread:j	Ljava/lang/String;
        //   30: aload_1
        //   31: getfield 87	com/qihoopp/framework/HttpLoadThread:k	I
        //   34: invokevirtual 111	com/qihoopp/framework/k:a	(ILjava/lang/String;I)Lorg/apache/http/client/HttpClient;
        //   37: checkcast 74	org/apache/http/impl/client/DefaultHttpClient
        //   40: astore 4
        //   42: aload_1
        //   43: invokespecial 100	com/qihoopp/framework/HttpLoadThread:a	()Z
        //   46: ifeq +35 -> 81
        //   49: new 68	org/apache/http/HttpHost
        //   52: dup
        //   53: aload_1
        //   54: getfield 86	com/qihoopp/framework/HttpLoadThread:j	Ljava/lang/String;
        //   57: aload_1
        //   58: getfield 87	com/qihoopp/framework/HttpLoadThread:k	I
        //   61: invokespecial 144	org/apache/http/HttpHost:<init>	(Ljava/lang/String;I)V
        //   64: astore 5
        //   66: aload 4
        //   68: invokevirtual 152	org/apache/http/impl/client/DefaultHttpClient:getParams	()Lorg/apache/http/params/HttpParams;
        //   71: ldc 22
        //   73: aload 5
        //   75: invokeinterface 165 3 0
        //   80: pop
        //   81: aload_1
        //   82: getfield 84	com/qihoopp/framework/HttpLoadThread:h	Z
        //   85: ifeq +11 -> 96
        //   88: new 51	java/lang/InterruptedException
        //   91: dup
        //   92: invokespecial 119	java/lang/InterruptedException:<init>	()V
        //   95: athrow
        //   96: new 55	java/lang/StringBuilder
        //   99: dup
        //   100: aload_1
        //   101: getfield 80	com/qihoopp/framework/HttpLoadThread:d	Ljava/lang/String;
        //   104: invokespecial 134	java/lang/StringBuilder:<init>	(Ljava/lang/String;)V
        //   107: astore 5
        //   109: aconst_null
        //   110: astore 6
        //   112: aload_1
        //   113: getfield 81	com/qihoopp/framework/HttpLoadThread:e	Ljava/util/Map;
        //   116: ifnull +121 -> 237
        //   119: aload_1
        //   120: getfield 81	com/qihoopp/framework/HttpLoadThread:e	Ljava/util/Map;
        //   123: invokeinterface 157 1 0
        //   128: ifne +109 -> 237
        //   131: aload 5
        //   133: ldc 8
        //   135: invokevirtual 136	java/lang/StringBuilder:append	(Ljava/lang/String;)Ljava/lang/StringBuilder;
        //   138: pop
        //   139: aload_1
        //   140: getfield 81	com/qihoopp/framework/HttpLoadThread:e	Ljava/util/Map;
        //   143: invokeinterface 156 1 0
        //   148: invokeinterface 160 1 0
        //   153: astore 6
        //   155: aload 6
        //   157: invokeinterface 154 1 0
        //   162: ifeq +62 -> 224
        //   165: aload 6
        //   167: invokeinterface 155 1 0
        //   172: checkcast 65	java/util/Map$Entry
        //   175: astore 7
        //   177: aload 5
        //   179: aload 7
        //   181: invokeinterface 158 1 0
        //   186: checkcast 53	java/lang/String
        //   189: invokevirtual 136	java/lang/StringBuilder:append	(Ljava/lang/String;)Ljava/lang/StringBuilder;
        //   192: ldc 7
        //   194: invokevirtual 136	java/lang/StringBuilder:append	(Ljava/lang/String;)Ljava/lang/StringBuilder;
        //   197: aload 7
        //   199: invokeinterface 159 1 0
        //   204: checkcast 53	java/lang/String
        //   207: ldc 17
        //   209: invokestatic 141	java/net/URLEncoder:encode	(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
        //   212: invokevirtual 136	java/lang/StringBuilder:append	(Ljava/lang/String;)Ljava/lang/StringBuilder;
        //   215: ldc 3
        //   217: invokevirtual 136	java/lang/StringBuilder:append	(Ljava/lang/String;)Ljava/lang/StringBuilder;
        //   220: pop
        //   221: goto -66 -> 155
        //   224: aload 5
        //   226: aload 5
        //   228: invokevirtual 138	java/lang/StringBuilder:length	()I
        //   231: iconst_1
        //   232: isub
        //   233: invokevirtual 137	java/lang/StringBuilder:deleteCharAt	(I)Ljava/lang/StringBuilder;
        //   236: pop
        //   237: new 72	org/apache/http/client/methods/HttpGet
        //   240: dup
        //   241: aload 5
        //   243: invokevirtual 139	java/lang/StringBuilder:toString	()Ljava/lang/String;
        //   246: invokestatic 103	com/qihoopp/framework/HttpLoadThread:a	(Ljava/lang/String;)Ljava/lang/String;
        //   249: invokespecial 146	org/apache/http/client/methods/HttpGet:<init>	(Ljava/lang/String;)V
        //   252: dup
        //   253: astore 6
        //   255: ldc 10
        //   257: ldc 19
        //   259: invokevirtual 147	org/apache/http/client/methods/HttpGet:setHeader	(Ljava/lang/String;Ljava/lang/String;)V
        //   262: aload 6
        //   264: ldc 9
        //   266: ldc 17
        //   268: invokevirtual 147	org/apache/http/client/methods/HttpGet:setHeader	(Ljava/lang/String;Ljava/lang/String;)V
        //   271: aload 4
        //   273: aload 6
        //   275: invokevirtual 151	org/apache/http/impl/client/DefaultHttpClient:execute	(Lorg/apache/http/client/methods/HttpUriRequest;)Lorg/apache/http/HttpResponse;
        //   278: dup
        //   279: astore 7
        //   281: ifnull +110 -> 391
        //   284: aload 7
        //   286: invokeinterface 163 1 0
        //   291: invokeinterface 164 1 0
        //   296: istore 4
        //   298: aload_1
        //   299: getfield 84	com/qihoopp/framework/HttpLoadThread:h	Z
        //   302: ifeq +11 -> 313
        //   305: new 51	java/lang/InterruptedException
        //   308: dup
        //   309: invokespecial 119	java/lang/InterruptedException:<init>	()V
        //   312: athrow
        //   313: getstatic 77	com/qihoopp/framework/HttpLoadThread:a	Ljava/lang/String;
        //   316: new 55	java/lang/StringBuilder
        //   319: dup
        //   320: ldc 23
        //   322: invokespecial 134	java/lang/StringBuilder:<init>	(Ljava/lang/String;)V
        //   325: iload 4
        //   327: invokevirtual 135	java/lang/StringBuilder:append	(I)Ljava/lang/StringBuilder;
        //   330: invokevirtual 139	java/lang/StringBuilder:toString	()Ljava/lang/String;
        //   333: invokestatic 106	com/qihoopp/framework/LogUtil:d	(Ljava/lang/String;Ljava/lang/String;)V
        //   336: iload 4
        //   338: sipush 200
        //   341: if_icmpne +50 -> 391
        //   344: aload 7
        //   346: invokeinterface 162 1 0
        //   351: invokeinterface 161 1 0
        //   356: dup
        //   357: astore 4
        //   359: ifnull +32 -> 391
        //   362: aload_1
        //   363: aload 4
        //   365: invokespecial 102	com/qihoopp/framework/HttpLoadThread:a	(Ljava/io/InputStream;)Ljava/lang/String;
        //   368: astore_2
        //   369: getstatic 77	com/qihoopp/framework/HttpLoadThread:a	Ljava/lang/String;
        //   372: new 55	java/lang/StringBuilder
        //   375: dup
        //   376: ldc 24
        //   378: invokespecial 134	java/lang/StringBuilder:<init>	(Ljava/lang/String;)V
        //   381: aload_2
        //   382: invokevirtual 136	java/lang/StringBuilder:append	(Ljava/lang/String;)Ljava/lang/StringBuilder;
        //   385: invokevirtual 139	java/lang/StringBuilder:toString	()Ljava/lang/String;
        //   388: invokestatic 106	com/qihoopp/framework/LogUtil:d	(Ljava/lang/String;Ljava/lang/String;)V
        //   391: goto +118 -> 509
        //   394: pop
        //   395: getstatic 77	com/qihoopp/framework/HttpLoadThread:a	Ljava/lang/String;
        //   398: ldc 35
        //   400: invokestatic 107	com/qihoopp/framework/LogUtil:e	(Ljava/lang/String;Ljava/lang/String;)V
        //   403: goto +106 -> 509
        //   406: astore 4
        //   408: iconst_5
        //   409: istore_3
        //   410: getstatic 77	com/qihoopp/framework/HttpLoadThread:a	Ljava/lang/String;
        //   413: ldc 18
        //   415: aload 4
        //   417: invokestatic 108	com/qihoopp/framework/LogUtil:e	(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)V
        //   420: goto +89 -> 509
        //   423: astore 4
        //   425: iconst_5
        //   426: istore_3
        //   427: getstatic 77	com/qihoopp/framework/HttpLoadThread:a	Ljava/lang/String;
        //   430: ldc 15
        //   432: aload 4
        //   434: invokestatic 108	com/qihoopp/framework/LogUtil:e	(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)V
        //   437: goto +72 -> 509
        //   440: astore 4
        //   442: iconst_3
        //   443: istore_3
        //   444: getstatic 77	com/qihoopp/framework/HttpLoadThread:a	Ljava/lang/String;
        //   447: ldc 16
        //   449: aload 4
        //   451: invokestatic 108	com/qihoopp/framework/LogUtil:e	(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)V
        //   454: goto +55 -> 509
        //   457: astore 4
        //   459: iconst_2
        //   460: istore_3
        //   461: getstatic 77	com/qihoopp/framework/HttpLoadThread:a	Ljava/lang/String;
        //   464: ldc 13
        //   466: aload 4
        //   468: invokestatic 108	com/qihoopp/framework/LogUtil:e	(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)V
        //   471: goto +38 -> 509
        //   474: astore 4
        //   476: iconst_4
        //   477: istore_3
        //   478: getstatic 77	com/qihoopp/framework/HttpLoadThread:a	Ljava/lang/String;
        //   481: ldc 14
        //   483: aload 4
        //   485: invokestatic 108	com/qihoopp/framework/LogUtil:e	(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)V
        //   488: goto +21 -> 509
        //   491: astore 4
        //   493: iconst_5
        //   494: istore_3
        //   495: getstatic 77	com/qihoopp/framework/HttpLoadThread:a	Ljava/lang/String;
        //   498: ldc 11
        //   500: aload 4
        //   502: invokestatic 108	com/qihoopp/framework/LogUtil:e	(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)V
        //   505: goto +4 -> 509
        //   508: athrow
        //   509: aload_1
        //   510: aload_1
        //   511: getfield 84	com/qihoopp/framework/HttpLoadThread:h	Z
        //   514: ifeq +7 -> 521
        //   517: iconst_m1
        //   518: goto +4 -> 522
        //   521: iload_3
        //   522: aload_2
        //   523: invokespecial 101	com/qihoopp/framework/HttpLoadThread:a	(ILjava/lang/String;)V
        //   526: return
        //   527: aload_0
        //   528: getfield 79	com/qihoopp/framework/HttpLoadThread:c	Lcom/qihoopp/framework/HttpRequestMode;
        //   531: getstatic 89	com/qihoopp/framework/HttpRequestMode:POST	Lcom/qihoopp/framework/HttpRequestMode;
        //   534: if_acmpne +7 -> 541
        //   537: aload_0
        //   538: invokespecial 104	com/qihoopp/framework/HttpLoadThread:b	()V
        //   541: return
        //
        // Exception table:
        //   from	to	target	type
        //   16	391	394	java/lang/InterruptedException
        //   16	391	406	java/net/UnknownHostException
        //   16	391	423	java/net/SocketException
        //   16	391	440	java/net/SocketTimeoutException
        //   16	391	457	java/io/IOException
        //   16	391	474	java/lang/NullPointerException
        //   16	391	491	java/lang/Exception
        //   16	391	508	finally
        //   394	403	508	finally
        //   406	420	508	finally
        //   423	437	508	finally
        //   440	454	508	finally
        //   457	471	508	finally
        //   474	488	508	finally
        //   491	505	508	finally
    }

    // ERROR //
    private void b() {
        // Byte code:
        //   0: aconst_null
        //   1: astore_1
        //   2: iconst_1
        //   3: istore_2
        //   4: new 45	com/qihoopp/framework/k
        //   7: dup
        //   8: invokespecial 110	com/qihoopp/framework/k:<init>	()V
        //   11: getstatic 78	com/qihoopp/framework/HttpLoadThread:b	I
        //   14: aload_0
        //   15: getfield 86	com/qihoopp/framework/HttpLoadThread:j	Ljava/lang/String;
        //   18: aload_0
        //   19: getfield 87	com/qihoopp/framework/HttpLoadThread:k	I
        //   22: invokevirtual 111	com/qihoopp/framework/k:a	(ILjava/lang/String;I)Lorg/apache/http/client/HttpClient;
        //   25: checkcast 74	org/apache/http/impl/client/DefaultHttpClient
        //   28: astore_3
        //   29: aload_0
        //   30: invokespecial 100	com/qihoopp/framework/HttpLoadThread:a	()Z
        //   33: ifeq +34 -> 67
        //   36: new 68	org/apache/http/HttpHost
        //   39: dup
        //   40: aload_0
        //   41: getfield 86	com/qihoopp/framework/HttpLoadThread:j	Ljava/lang/String;
        //   44: aload_0
        //   45: getfield 87	com/qihoopp/framework/HttpLoadThread:k	I
        //   48: invokespecial 144	org/apache/http/HttpHost:<init>	(Ljava/lang/String;I)V
        //   51: astore 4
        //   53: aload_3
        //   54: invokevirtual 152	org/apache/http/impl/client/DefaultHttpClient:getParams	()Lorg/apache/http/params/HttpParams;
        //   57: ldc 22
        //   59: aload 4
        //   61: invokeinterface 165 3 0
        //   66: pop
        //   67: aload_0
        //   68: getfield 84	com/qihoopp/framework/HttpLoadThread:h	Z
        //   71: ifeq +11 -> 82
        //   74: new 51	java/lang/InterruptedException
        //   77: dup
        //   78: invokespecial 119	java/lang/InterruptedException:<init>	()V
        //   81: athrow
        //   82: new 73	org/apache/http/client/methods/HttpPost
        //   85: dup
        //   86: aload_0
        //   87: getfield 80	com/qihoopp/framework/HttpLoadThread:d	Ljava/lang/String;
        //   90: invokestatic 103	com/qihoopp/framework/HttpLoadThread:a	(Ljava/lang/String;)Ljava/lang/String;
        //   93: invokespecial 148	org/apache/http/client/methods/HttpPost:<init>	(Ljava/lang/String;)V
        //   96: dup
        //   97: astore 4
        //   99: ldc 10
        //   101: ldc 19
        //   103: invokevirtual 150	org/apache/http/client/methods/HttpPost:setHeader	(Ljava/lang/String;Ljava/lang/String;)V
        //   106: aload 4
        //   108: ldc 9
        //   110: ldc 17
        //   112: invokevirtual 150	org/apache/http/client/methods/HttpPost:setHeader	(Ljava/lang/String;Ljava/lang/String;)V
        //   115: aload_0
        //   116: getfield 81	com/qihoopp/framework/HttpLoadThread:e	Ljava/util/Map;
        //   119: ifnull +118 -> 237
        //   122: aload_0
        //   123: getfield 81	com/qihoopp/framework/HttpLoadThread:e	Ljava/util/Map;
        //   126: invokeinterface 157 1 0
        //   131: ifne +106 -> 237
        //   134: new 62	java/util/ArrayList
        //   137: dup
        //   138: invokespecial 142	java/util/ArrayList:<init>	()V
        //   141: astore 5
        //   143: aload_0
        //   144: getfield 81	com/qihoopp/framework/HttpLoadThread:e	Ljava/util/Map;
        //   147: invokeinterface 156 1 0
        //   152: invokeinterface 160 1 0
        //   157: astore 6
        //   159: aload 6
        //   161: invokeinterface 154 1 0
        //   166: ifeq +51 -> 217
        //   169: aload 6
        //   171: invokeinterface 155 1 0
        //   176: checkcast 65	java/util/Map$Entry
        //   179: astore 7
        //   181: aload 5
        //   183: new 75	org/apache/http/message/BasicNameValuePair
        //   186: dup
        //   187: aload 7
        //   189: invokeinterface 158 1 0
        //   194: checkcast 53	java/lang/String
        //   197: aload 7
        //   199: invokeinterface 159 1 0
        //   204: checkcast 53	java/lang/String
        //   207: invokespecial 153	org/apache/http/message/BasicNameValuePair:<init>	(Ljava/lang/String;Ljava/lang/String;)V
        //   210: invokevirtual 143	java/util/ArrayList:add	(Ljava/lang/Object;)Z
        //   213: pop
        //   214: goto -55 -> 159
        //   217: new 71	org/apache/http/client/entity/UrlEncodedFormEntity
        //   220: dup
        //   221: aload 5
        //   223: ldc 33
        //   225: invokespecial 145	org/apache/http/client/entity/UrlEncodedFormEntity:<init>	(Ljava/util/List;Ljava/lang/String;)V
        //   228: astore 6
        //   230: aload 4
        //   232: aload 6
        //   234: invokevirtual 149	org/apache/http/client/methods/HttpPost:setEntity	(Lorg/apache/http/HttpEntity;)V
        //   237: aload_3
        //   238: aload 4
        //   240: invokevirtual 151	org/apache/http/impl/client/DefaultHttpClient:execute	(Lorg/apache/http/client/methods/HttpUriRequest;)Lorg/apache/http/HttpResponse;
        //   243: dup
        //   244: astore 5
        //   246: ifnull +110 -> 356
        //   249: aload 5
        //   251: invokeinterface 163 1 0
        //   256: invokeinterface 164 1 0
        //   261: istore 6
        //   263: aload_0
        //   264: getfield 84	com/qihoopp/framework/HttpLoadThread:h	Z
        //   267: ifeq +11 -> 278
        //   270: new 51	java/lang/InterruptedException
        //   273: dup
        //   274: invokespecial 119	java/lang/InterruptedException:<init>	()V
        //   277: athrow
        //   278: getstatic 77	com/qihoopp/framework/HttpLoadThread:a	Ljava/lang/String;
        //   281: new 55	java/lang/StringBuilder
        //   284: dup
        //   285: ldc 25
        //   287: invokespecial 134	java/lang/StringBuilder:<init>	(Ljava/lang/String;)V
        //   290: iload 6
        //   292: invokevirtual 135	java/lang/StringBuilder:append	(I)Ljava/lang/StringBuilder;
        //   295: invokevirtual 139	java/lang/StringBuilder:toString	()Ljava/lang/String;
        //   298: invokestatic 106	com/qihoopp/framework/LogUtil:d	(Ljava/lang/String;Ljava/lang/String;)V
        //   301: iload 6
        //   303: sipush 200
        //   306: if_icmpne +50 -> 356
        //   309: aload 5
        //   311: invokeinterface 162 1 0
        //   316: invokeinterface 161 1 0
        //   321: dup
        //   322: astore 6
        //   324: ifnull +32 -> 356
        //   327: aload_0
        //   328: aload 6
        //   330: invokespecial 102	com/qihoopp/framework/HttpLoadThread:a	(Ljava/io/InputStream;)Ljava/lang/String;
        //   333: astore_1
        //   334: getstatic 77	com/qihoopp/framework/HttpLoadThread:a	Ljava/lang/String;
        //   337: new 55	java/lang/StringBuilder
        //   340: dup
        //   341: ldc 26
        //   343: invokespecial 134	java/lang/StringBuilder:<init>	(Ljava/lang/String;)V
        //   346: aload_1
        //   347: invokevirtual 136	java/lang/StringBuilder:append	(Ljava/lang/String;)Ljava/lang/StringBuilder;
        //   350: invokevirtual 139	java/lang/StringBuilder:toString	()Ljava/lang/String;
        //   353: invokestatic 106	com/qihoopp/framework/LogUtil:d	(Ljava/lang/String;Ljava/lang/String;)V
        //   356: goto +106 -> 462
        //   359: astore_3
        //   360: getstatic 77	com/qihoopp/framework/HttpLoadThread:a	Ljava/lang/String;
        //   363: ldc 35
        //   365: invokestatic 107	com/qihoopp/framework/LogUtil:e	(Ljava/lang/String;Ljava/lang/String;)V
        //   368: goto +94 -> 462
        //   371: astore_3
        //   372: iconst_5
        //   373: istore_2
        //   374: getstatic 77	com/qihoopp/framework/HttpLoadThread:a	Ljava/lang/String;
        //   377: ldc 18
        //   379: aload_3
        //   380: invokestatic 108	com/qihoopp/framework/LogUtil:e	(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)V
        //   383: goto +79 -> 462
        //   386: astore_3
        //   387: iconst_5
        //   388: istore_2
        //   389: getstatic 77	com/qihoopp/framework/HttpLoadThread:a	Ljava/lang/String;
        //   392: ldc 15
        //   394: aload_3
        //   395: invokestatic 108	com/qihoopp/framework/LogUtil:e	(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)V
        //   398: goto +64 -> 462
        //   401: astore_3
        //   402: iconst_3
        //   403: istore_2
        //   404: getstatic 77	com/qihoopp/framework/HttpLoadThread:a	Ljava/lang/String;
        //   407: ldc 16
        //   409: aload_3
        //   410: invokestatic 108	com/qihoopp/framework/LogUtil:e	(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)V
        //   413: goto +49 -> 462
        //   416: astore_3
        //   417: iconst_2
        //   418: istore_2
        //   419: getstatic 77	com/qihoopp/framework/HttpLoadThread:a	Ljava/lang/String;
        //   422: ldc 13
        //   424: aload_3
        //   425: invokestatic 108	com/qihoopp/framework/LogUtil:e	(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)V
        //   428: goto +34 -> 462
        //   431: astore_3
        //   432: iconst_4
        //   433: istore_2
        //   434: getstatic 77	com/qihoopp/framework/HttpLoadThread:a	Ljava/lang/String;
        //   437: ldc 14
        //   439: aload_3
        //   440: invokestatic 108	com/qihoopp/framework/LogUtil:e	(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)V
        //   443: goto +19 -> 462
        //   446: astore_3
        //   447: iconst_5
        //   448: istore_2
        //   449: getstatic 77	com/qihoopp/framework/HttpLoadThread:a	Ljava/lang/String;
        //   452: ldc 11
        //   454: aload_3
        //   455: invokestatic 108	com/qihoopp/framework/LogUtil:e	(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)V
        //   458: goto +4 -> 462
        //   461: athrow
        //   462: aload_0
        //   463: aload_0
        //   464: getfield 84	com/qihoopp/framework/HttpLoadThread:h	Z
        //   467: ifeq +7 -> 474
        //   470: iconst_m1
        //   471: goto +4 -> 475
        //   474: iload_2
        //   475: aload_1
        //   476: invokespecial 101	com/qihoopp/framework/HttpLoadThread:a	(ILjava/lang/String;)V
        //   479: return
        //
        // Exception table:
        //   from	to	target	type
        //   4	356	359	java/lang/InterruptedException
        //   4	356	371	java/net/UnknownHostException
        //   4	356	386	java/net/SocketException
        //   4	356	401	java/net/SocketTimeoutException
        //   4	356	416	java/io/IOException
        //   4	356	431	java/lang/NullPointerException
        //   4	356	446	java/lang/Exception
        //   4	356	461	finally
        //   359	368	461	finally
        //   371	383	461	finally
        //   386	398	461	finally
        //   401	413	461	finally
        //   416	428	461	finally
        //   431	443	461	finally
        //   446	458	461	finally
    }

    private static String a(String paramString) {
        LogUtil.d(a, "uriEncode = " + paramString);
        paramString = paramString.replaceAll(" ", "%20");
        StringBuffer localStringBuffer = new StringBuffer();
        for (int l = 0; l < paramString.length(); ++l) {
            char c1;
            byte[] arrayOfByte;
            if (((arrayOfByte = String.valueOf(c1 = paramString.charAt(l)).getBytes()) == null)
                    || (arrayOfByte.length <= 0))
                throw new UnsupportedEncodingException();
            if (arrayOfByte.length == 1) {
                localStringBuffer.append(c1);
            }
            else {
                String str = URLEncoder.encode(new String(arrayOfByte), "UTF-8");
                localStringBuffer.append(str);
            }
        }
        return localStringBuffer.toString();
    }

    private String a(InputStream paramInputStream) {
        ByteArrayOutputStream localByteArrayOutputStream = new ByteArrayOutputStream();
        byte[] arrayOfByte = new byte[1024];
        int l = 0;
        while ((l = paramInputStream.read(arrayOfByte)) != -1) {
            if (this.h)
                throw new InterruptedException();
            localByteArrayOutputStream.write(arrayOfByte, 0, l);
        }
        localByteArrayOutputStream.close();
        paramInputStream.close();
        return new String(localByteArrayOutputStream.toByteArray(), "UTF-8");
    }
}